package com.livra.utils;

import java.util.HashMap;
import java.util.Map;

import com.livra.model.Pick;
import com.livra.model.PickOption;
import com.livra.model.User;

public class JsonPickConfig extends JsonReflexionConfig {

    @SuppressWarnings("unchecked")
    public static  JsonReflexionConfig createConfig(){
        Map<String,Class> classMap = new HashMap<String,Class>();
        classMap.put("options", PickOption.class);
        classMap.put("myVote", PickOption.class);
        classMap.put("user", User.class);
        JsonReflexionConfig config = JsonReflexionConfig.createByClass(Pick.class);
        config.setClassMap(classMap);
        config.setJavaIdentifierTransformer(new LivraJavaIdentifierTransformer());
        return config;
        
    }
    
}
